package error.client_error;//package com.client;
//
//import org.apache.cxf.endpoint.Client;
//import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
//
///**
// * webservice客户端调用
// */
//public class TestDemo {
//    private static final String WSDL_URL = "http://127.0.0.1:8080/services/TestWebService1?wsdl";
//
//
//    public static void main(String[] args) {
//        JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
//        Client client = dcf.createClient(WSDL_URL);
//        Object[] objects = new Object[0];
//        try {
//            objects = client.invoke("hello0");
//            System.out.println("返回数据:" + objects[0]);
//        } catch (java.lang.Exception e) {
//            e.printStackTrace();
//        }
//    }
//
//}